<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link rel="icon" href="__PUBLIC__/imgs/icon/favicon.ico" type="image/ico" sizes="16x16">
    <title><{$title}></title>
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
    <link rel="stylesheet" href="__PUBLIC__/li.css">

    <link rel="stylesheet" href="__PUBLIC__/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="__PUBLIC__/kindeditor/plugins/code/prettify.css" />



</head>
<body>
<form action="<{:U('Answer/save')}>" name="example" method="post" enctype="multipart/form-data">


    <!-- 导航条开始 -->
        <nav class="navbar-fixed-top" style="background-color: #fff;">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <!-- <span class="sr-only">Toggle navigation</span> -->
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <!-- 网页logo -->
                    <a class="navbar-brand" href="<{:U('Index/index')}>">
                        <img src="__PUBLIC__/imgs/icon/zhihu-logo03.png" id="logo"> 
                    </a>
                </div>

                <!-- 导航条内容 content -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

                    <ul class="nav navbar-nav">
                        <li><a href="<{:U('Article/index')}>" style="font-size:15px; font-weight:700; color: #666;" > 文章首页</a></li>
                        <li><p class="navbar-text h4 " style="color:black">写文章</p></li>
                        
                    </ul>

                    <ul class="nav navbar-nav navbar-right" style="margin-right: 50px;">
                        <li>
                            <!-- 提交按钮 -->
                            <button type="submit" class="btn btn-default btn-sm navbar-btn">
                                &ensp;确&ensp;认&ensp;提&ensp;交&ensp;
                            </button>
                        </li>
                        <!-- <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                ○○○
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="<{//:U('Drafts/index')}>">草稿</a></li>
                                <li><a href="<{//:U('People/index')}>">我的文章</a></li>
                                <li><a href="<{//:U('Column/index')}>">专栏.发现</a></li>
                                <li role="separator" class="divider"></li>
                            </ul>
                        </li> -->
                    </ul>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        <div class="divline"></div>
        </nav><!--结束导航条-->



    <div class="col-md-8 col-md-offset-2">
    </div>

    <div class="clearfix"></div>

    <div id="mainimage" class="mt10 col-md-12"></div>


    <div class="col-md-8 col-md-offset-2">
        <div class="mt20">

            <input type="hidden" name="aid" value="<{$data.0.aid}>">
            <input type="hidden" name="qid" value="<{$data.0.qid}>">

            <textarea id="editor_id" name="content" style="width:100%;height:300px;"><{$data.0.acontent}></textarea>
        </div>
    </div>
    <div class="clearfix"></div>


</form>

    <!--引入jquery-->
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <!--引入bootstrap 的js-->
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>

    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor-all.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh-CN.js"></script>
    <script charset="utf-8" src="__PUBLIC__/kindeditor/plugins/code/prettify.js"></script>


    <script>
        KindEditor.ready(function(K) {
            var editor1 = K.create('#editor_id', {
                themeType : 'simple',
                cssPath : './Public/kindeditor/plugins/code/prettify.css',
                // 上传管理
                uploadJson : "<{:U('Write/upload')}>",
                cssData: ".ke-content img {max-width: 600px;height:auto;}",
                urlType : 'absolute',
                // fileManagerJson : '/Public/kindeditor/php/file_manager_json.php',
                // allowFileManager : true,
                items : [
                    'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                    'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                    'insertunorderedlist', '|', 'emoticons', 'image', 'link'],
                afterCreate : function() {
                    var self = this;
                    K.ctrl(document, 13, function() {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function() {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });
    </script>

</body>
</html>